import request from '@/utils/request'

export function getReceiveList(query) {
  return request({
    url: '/messenger/receive/getList',
    method: 'post',
    data: query
  })
}

export function getReceiveDetail(id) {
  return request({
    url: '/messenger/receive/getInfo',
    method: 'post',
    data: { id }
  })
}

export function removeReceiveByID(receiveID) {
  return request({
    url: '/messenger/receive/delete',
    method: 'post',
    data: {
      'receive_identity': receiveID
    }
  })
}

export function saveReceive(data) {
  return request({
    url: '/messenger/receive/save',
    method: 'post',
    data
  })
}
